package com.ytxg.health_management.service;


import com.ytxg.health_management.pojo.dto.UserDto;
import com.ytxg.health_management.pojo.entity.Result;
import com.ytxg.health_management.pojo.entity.User;
import com.ytxg.health_management.pojo.vo.UserRegister;


import java.util.Map;

public interface UserService {
    int register(UserRegister user);
    String getUserName(String userName);

    Result<Map<String,Object>> login(UserRegister userRegister);
    UserDto getUserInfo(String userName);

    Result<String> updatePsw(String userName,User user);

    Result<Map<String,Object>> getAll(User user);
    Result<String> updateImg(String img,int id);
    Result<String> updateUser(User user);
    Result<String> deleteUser(User user);
}
